{extend name="ly_common/index_menu" /}

{block name="main_content"}
<div id="heading-breadcrumbs">
    <div class="container">
        <div class="row d-flex align-items-center flex-wrap">
            <div class="col-md-7">
                <h1 class="h2">业务范围</h1>
            </div>
            <div class="col-md-5">
                <ul class="breadcrumb d-flex justify-content-end">
                    <li class="breadcrumb-item"><a href="/">首页</a></li>
                    <li class="breadcrumb-item active">业务范围</li>
                </ul>
            </div>
        </div>
    </div>
</div>
<section class="bar">
    <div class="container">
        <div class="row">
            <div class="col-lg-3">
                <!-- MENUS AND WIDGETS -->
                <div class="panel panel-default sidebar-menu with-icons">
                    <div class="panel-heading">
                        <h3 class="h4 panel-title">类别</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="nav nav-pills flex-column text-sm">
                            {notempty name="aryData"}
                            {foreach $aryData as $v}
                            {php}$id = $v['id']{/php}
                            <li class="nav-item">
                                <a href="{:url("/item/$tid-$id")}" class="nav-link {if $v.id==$aryNow.id}active{/if}">
                                {$v.title ?: ''}
                                </a>
                            </li>
                            {/foreach}
                            {/notempty}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-lg-9">
                <div role="tablist" class="mb-5">
            {notempty name="aryNowAll"}
            {foreach $aryNowAll as $val}

                    <div class="card">
                        <div id="headingOne" role="tab" class="card-header">
                            <h5 class="mb-0">
                                <a data-toggle="collapse" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                    {$val.title ?: ''}
                                </a>
                            </h5>
                        </div>
                        <div id="collapseOne" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordion" class="collapse show">
                            <div class="card-body">
                                <div class="row">
                                    <?php echo !empty($val['content'])?htmlspecialchars_decode($val['content']):"";?>
                                </div>
                            </div>
                        </div>
                    </div>

            {/foreach}
            {/notempty}
                </div>
            </div>
        </div>
    </div>
</section>
{/block}